//
//  ViptypeView.m
//  TQY
//
//  Created by 甘世清 on 2024/12/5.
//

#import "ViptypeView.h"

@implementation ViptypeView

- (void)SQ_UIViewForSelfView{
    UILabel * label  = [[UILabel alloc]init];
    label.text = SQNSLocalString(@"会员特权");
    label.font = FONT_MEDIUM(13);
    label.textColor = SQColor333333;
    [self addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self);
            make.top.equalTo(self);
    }];
    UIImageView * image = [[UIImageView alloc]init];
    image.image = SQGetImage(@"编组");
    [self addSubview:image];
    [image mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(12);
            make.centerY.equalTo(label);
            make.right.equalTo(label.mas_left).offset(-8);
    }];
    UIImageView * image1 = [[UIImageView alloc]init];
    image1.image = SQGetImage(@"编组");
    [self addSubview:image1];
    [image1 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(12);
            make.centerY.equalTo(label);
            make.left.equalTo(label.mas_right).offset(8);
    }];
    UIImageView * image2 = [[UIImageView alloc]init];
    image2.image = SQGetImage(@"编组备份 3");
    [self addSubview:image2];
    [image2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(12);
            make.centerY.equalTo(label);
            make.right.equalTo(image.mas_left).offset(-6);
    }];
    UIImageView * image12 = [[UIImageView alloc]init];
    image12.image = SQGetImage(@"编组备份 3");
    [self addSubview:image12];
    [image12 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(12);
            make.centerY.equalTo(label);
            make.left.equalTo(image1.mas_right).offset(6);
    }];
    UIImageView * image3 = [[UIImageView alloc]init];
    image3.image = SQGetImage(@"编组备份 4");
    [self addSubview:image3];
    [image3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(12);
            make.centerY.equalTo(label);
            make.right.equalTo(image2.mas_left).offset(-6);
    }];
    UIImageView * image13 = [[UIImageView alloc]init];
    image13.image = SQGetImage(@"编组备份 4");
    [self addSubview:image13];
    [image13 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(12);
            make.centerY.equalTo(label);
            make.left.equalTo(image12.mas_right).offset(6);
    }];
    
    UIImageView * bgImage = [[UIImageView alloc]init];
    bgImage.image = SQGetImage(@"矩形蒙版");
    [self addSubview:bgImage];
    [bgImage mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.mas_equalTo(SCREEN_WIDETH/2.f-18);
            make.height.mas_equalTo(88);
            make.left.equalTo(self).offset(12);
            make.top.equalTo(self).offset(40);
    }];
    
    UILabel * topLabel = [[UILabel alloc]init];
    topLabel.text = SQNSLocalString(@"专属VIP标识");
    topLabel.font = FONT_MEDIUM(14);
    topLabel.textColor = SQColor333333;
    [bgImage addSubview:topLabel];
    [topLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(bgImage);
            make.top.equalTo(bgImage).offset(23);
    }];
    
    UILabel * bottomLabel = [[UILabel alloc]init];
    bottomLabel.text = SQNSLocalString(@"点亮你的特殊身份");
    bottomLabel.font = FONT_MEDIUM(12);
    bottomLabel.textColor = SQColor(@"#8760FF");
    [bgImage addSubview:bottomLabel];
    [bottomLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(bgImage);
            make.top.equalTo(bgImage).offset(50);
    }];
    
    
    UIImageView * bgImage2 = [[UIImageView alloc]init];
    bgImage2.image = SQGetImage(@"矩形蒙版");
    [self addSubview:bgImage2];
    [bgImage2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.mas_equalTo(SCREEN_WIDETH/2.f-18);
            make.height.mas_equalTo(88);
            make.right.equalTo(self.mas_right).offset(-12);
            make.top.equalTo(self).offset(40);
    }];
    
    UILabel * topLabel2 = [[UILabel alloc]init];
    topLabel2.text = SQNSLocalString(@"无限聊天");
    topLabel2.font = FONT_MEDIUM(14);
    topLabel2.textColor = SQColor333333;
    [bgImage2 addSubview:topLabel2];
    [topLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(bgImage2);
            make.top.equalTo(bgImage2).offset(23);
    }];
    
    UILabel * bottomLabel2 = [[UILabel alloc]init];
    bottomLabel2.text = SQNSLocalString(@"直接发起对话聊天");
    bottomLabel2.font = FONT_MEDIUM(12);
    bottomLabel2.textColor = SQColor(@"#8760FF");
    [bgImage2 addSubview:bottomLabel2];
    [bottomLabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(bgImage2);
            make.top.equalTo(bgImage2).offset(50);
    }];
    
    
    UIImageView * bgImage3 = [[UIImageView alloc]init];
    bgImage3.image = SQGetImage(@"矩形蒙版");
    [self addSubview:bgImage3];
    [bgImage3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.mas_equalTo(SCREEN_WIDETH/2.f-18);
            make.height.mas_equalTo(88);
            make.left.equalTo(self).offset(12);
            make.top.equalTo(bgImage.mas_bottom).offset(10);
    }];
    
    UILabel * topLabel3 = [[UILabel alloc]init];
    topLabel3.text = SQNSLocalString(@"发布活动");
    topLabel3.font = FONT_MEDIUM(14);
    topLabel3.textColor = SQColor333333;
    [bgImage3 addSubview:topLabel3];
    [topLabel3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(bgImage3);
            make.top.equalTo(bgImage3).offset(23);
    }];
    
    UILabel * bottomLabel3 = [[UILabel alloc]init];
    bottomLabel3.text = SQNSLocalString(@"做活动发起人");
    bottomLabel3.font = FONT_MEDIUM(12);
    bottomLabel3.textColor = SQColor(@"#8760FF");
    [bgImage3 addSubview:bottomLabel3];
    [bottomLabel3 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(bgImage3);
            make.top.equalTo(bgImage3).offset(50);
    }];
    
    
    UIImageView * bgImage4 = [[UIImageView alloc]init];
    bgImage4.image = SQGetImage(@"矩形蒙版");
    [self addSubview:bgImage4];
    [bgImage4 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.mas_equalTo(SCREEN_WIDETH/2.f-18);
            make.height.mas_equalTo(88);
            make.right.equalTo(self.mas_right).offset(-12);
        make.top.equalTo(bgImage.mas_bottom).offset(10);
    }];
    
    UILabel * topLabel4 = [[UILabel alloc]init];
    topLabel4.text = SQNSLocalString(@"发布动态");
    topLabel4.font = FONT_MEDIUM(14);
    topLabel4.textColor = SQColor333333;
    [bgImage4 addSubview:topLabel4];
    [topLabel4 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(bgImage4);
            make.top.equalTo(bgImage4).offset(23);
    }];
    
    UILabel * bottomLabel4 = [[UILabel alloc]init];
    bottomLabel4.text = SQNSLocalString(@"让更多人看见你");
    bottomLabel4.font = FONT_MEDIUM(12);
    bottomLabel4.textColor = SQColor(@"#8760FF");
    [bgImage4 addSubview:bottomLabel4];
    [bottomLabel4 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(bgImage4);
            make.top.equalTo(bgImage4).offset(50);
    }];
}

@end
